how to create an invite discord.js

76

how to create an invite discord.js -

// Create an invite to a channel
channel.createInvite()
  .then(invite => console.log(`Created an invite with a code of ${invite.code}`))
  .catch(console.error);

Comments

Submit
0 Comments